package com.zhw.goshopping.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Create by zhaihongwei on 2018/3/17
 */
@Controller
public class PageController {

    // 显示后台管理系统首页
    @RequestMapping("/")
    public String showIndex() {
        return "index";
    }

    // 菜单跳转
    @RequestMapping("/{page}")
    public String showPage(@PathVariable String page) {
        return page;
    }
}
